import java.util.Scanner;

/**
   Reads a string, reverses the order the characters within the
   string, and prints out the result.
   Input: the value of s, a string
   Output: the string reversed
*/
public class ReverseString
{
   public static void main(String[] args)
   {
      Scanner in = new Scanner(System.in);
      String s = in.nextLine();
      StringBuilder words = new StringBuilder(s);
      StringBuilder words1 = words.reverse();
      String reversed = words1 + "";

      System.out.println(reversed);
   }
}